package com.example.sup.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 监区类型通道
 * @TableName prison_jack
 */
@TableName(value ="prison_jack")
@Data
public class PrisonJack implements Serializable {
    /**
     * 监室类型通道表
     */
    @TableId(type = IdType.AUTO)
    private Integer prisonJackId;

    /**
     * 通道类型
     */
    private Integer jackType;

    /**
     * 监室类型通道名称
     */
    private String prisonJackName;

    /**
     * 监室类型通道号
     */
    private Integer prisonJackNumber;

    /**
     * 监室类型id
     */
    private Integer prisonTypeId;

    /**
     * 强电通道类型(1照明灯/2风扇或空调/3排气扇/4其他)
     */
    private Integer strongChannelType;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private String createBy;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PrisonJack other = (PrisonJack) that;
        return (this.getPrisonJackId() == null ? other.getPrisonJackId() == null : this.getPrisonJackId().equals(other.getPrisonJackId()))
            && (this.getJackType() == null ? other.getJackType() == null : this.getJackType().equals(other.getJackType()))
            && (this.getPrisonJackName() == null ? other.getPrisonJackName() == null : this.getPrisonJackName().equals(other.getPrisonJackName()))
            && (this.getPrisonJackNumber() == null ? other.getPrisonJackNumber() == null : this.getPrisonJackNumber().equals(other.getPrisonJackNumber()))
            && (this.getPrisonTypeId() == null ? other.getPrisonTypeId() == null : this.getPrisonTypeId().equals(other.getPrisonTypeId()))
            && (this.getStrongChannelType() == null ? other.getStrongChannelType() == null : this.getStrongChannelType().equals(other.getStrongChannelType()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPrisonJackId() == null) ? 0 : getPrisonJackId().hashCode());
        result = prime * result + ((getJackType() == null) ? 0 : getJackType().hashCode());
        result = prime * result + ((getPrisonJackName() == null) ? 0 : getPrisonJackName().hashCode());
        result = prime * result + ((getPrisonJackNumber() == null) ? 0 : getPrisonJackNumber().hashCode());
        result = prime * result + ((getPrisonTypeId() == null) ? 0 : getPrisonTypeId().hashCode());
        result = prime * result + ((getStrongChannelType() == null) ? 0 : getStrongChannelType().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", prisonJackId=").append(prisonJackId);
        sb.append(", jackType=").append(jackType);
        sb.append(", prisonJackName=").append(prisonJackName);
        sb.append(", prisonJackNumber=").append(prisonJackNumber);
        sb.append(", prisonTypeId=").append(prisonTypeId);
        sb.append(", strongChannelType=").append(strongChannelType);
        sb.append(", createTime=").append(createTime);
        sb.append(", createBy=").append(createBy);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}